<?php

/**
 * Generated Model class.
 */
class Base_TagRow extends Db_Row
{

    /**
     * Set new value for tag.id column in current Row.
     * 
     * @param int $IdFromTagRow
     * @return void
     */
    public function setId($Id)
    {
        $this->__set("id", $Id);
    }

    /**
     * Return tag.id column value in current Row.
     * 
     * @return int
     */
    public function getId()
    {
        return $this->__get("id");
    }

    /**
     * Set new value for tag.key column in current Row.
     * 
     * @param char $KeyFromTagRow
     * @return void
     */
    public function setKey($Key)
    {
        $this->__set("key", $Key);
    }

    /**
     * Return tag.key column value in current Row.
     * 
     * @return char
     */
    public function getKey()
    {
        return $this->__get("key");
    }

    /**
     * Return dependent rowset from table News2tag where News2tag.TagId reference to
     * tag table
     * 
     * @param Db_Select $select FromNews2tag
     * @return Zend_Db_Table_Rowset_Abstract
     */
    public function getNews2tagRowsetByTagId($select = null)
    {
        return $this->findDependentRowset('News2tagPeer', null, $select);
    }

    /**
     * Return many2many rowset from table News via News2tag.news_id
     * 
     * @param Db_Select $select From News
     * @return Zend_Db_Table_Rowset_Abstract
     */
    public function getNewsRowsetByNews2tag($select = null)
    {
        return $this->findManyToManyRowset(NewsPeer::getInstance(), News2tagPeer::getInstance(), null, null, $select);
    }


}

